
<template tag="以下文档内容为hycli自动生成">
  <div>
   
    <!-- 关联需求 -->
    <el-dialog v-model="conf.aaaku_visible" 
      v-if="conf.aaaku_visible"   draggable
      title="关联需求" :close-on-click-modal="false"  width="60%"
      top="10vh" 
      :before-close="hide_aaaku">
    <el-form  ref="fm_aaaku" :model="form_aaaku" :rules="rules_aaaku">
    <el-row>
    <el-col :span="24">
    <!-- {"index":7,"raw":"plan_id","name":"plan_id","cname":"PlanId","type":{"raw":"number(10)","name":"number","len":10,"dlen":0},"defValue":"0","allowNull":true,"constraints":["le","q","v","w","sl(dev_plan,-,#lob_id)","sws","tp(multiselect,q)","ps(full)","DP","tp(readonly,rpp)","rpp"],"desc":{"raw":"研发计划","name":"研发计划"}} -->
     <!--研发计划 下拉控件 -->
    <el-form-item prop="plan_id" label="研发计划" label-width="100px" label-position="right">
      <el-select   v-model="form_aaaku.plan_id" style="width: 100%" filterable clearable
        placeholder="请选择研发计划" disabled >
        <el-option v-for="item in plan_idList" :key="item.value" :label="item.name" :value="item.value" />
      </el-select>
    </el-form-item>
    </el-col>
    <el-col :span="24">
    <!-- {"index":31,"raw":"^pr_id","name":"pr_id","cname":"PrId","type":{"raw":"number(20)","name":"number","len":20,"dlen":0},"defValue":"","allowNull":true,"constraints":["enumurl(/ws/prod/requirement/enums)","alias(prod_id)","ps(full)","rpp","mx","sl(active_prod_requirement,-,#lob_id)"],"desc":{"raw":"关联需求","name":"关联需求"}} -->
     <!--关联需求 下拉控件 -->
    <el-form-item prop="pr_id" label="关联需求" label-width="100px" label-position="right">
      <el-select   v-model="form_aaaku.pr_id" style="width: 100%" filterable clearable
        placeholder="请选择关联需求" >
        <el-option v-for="item in pr_idList" :key="item.value" :label="item.name" :value="item.value" />
      </el-select>
    </el-form-item>
    </el-col>
    </el-row>
    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="hide_aaaku" icon="close">取消</el-button>
        <el-button type="primary" @click="save_aaaku" icon="select">提交</el-button>
      </span>
    </template>
    </el-dialog>
   
    <!-- 批量备注 -->
    <el-dialog v-model="conf.aaakg_visible" 
        draggable
      title="批量备注" :close-on-click-modal="false"  width="60%"
      top="10vh" 
      :before-close="hide_aaakg">
    <el-form  ref="fm_aaakg" :model="form_aaakg" :rules="rules_aaakg">
    <el-row>
    </el-row>
    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="hide_aaakg" icon="close">取消</el-button>
        <el-button type="primary" @click="save_aaakg" icon="select">提交</el-button>
      </span>
    </template>
    </el-dialog>
   
    <!-- 我要提需求 -->
    <el-dialog v-model="conf.aaakv_visible" 
        draggable
      title="我要提需求" :close-on-click-modal="false"  width="70%"
      top="10vh" 
      :before-close="hide_aaakv">
    <el-form  ref="fm_aaakv" :model="form_aaakv" :rules="rules_aaakv">
    <el-row>
    <el-col :span="24">
    <!-- {"index":6,"raw":"name","name":"name","cname":"Name","type":{"raw":"varchar2(128)","name":"varchar2","len":128,"dlen":0},"defValue":"","allowNull":false,"constraints":["c","l","u","le","q","DN","v","DN","lnm","li","rows(1)","lw(180)","#like","fx"],"desc":{"raw":"名称","name":"名称"}} -->
    <!--名称 输入控件 -->
    <el-form-item prop="name" label="名称" label-width="100px" label-position="right">
      <el-input clearable style="width: 100%" v-model="form_aaakv.name"  maxlength="128" 
      :rows="1"  type="textarea" show-word-limit  placeholder="请输入名称"  />
      </el-form-item>
    </el-col>
    <el-col :span="12">
    <!-- {"index":8,"raw":"priority","name":"priority","cname":"Priority","type":{"raw":"number(1)","name":"number","len":1,"dlen":0},"defValue":"0","allowNull":false,"constraints":["l","le","c","u","fq","li","v","sl(PRI)","tp(radio)","sws","color","rx","lw(80)","fx"],"desc":{"raw":"优先级  \u003cbr /\u003ep0 重大客情/政治任务/直接产生效益\u003cbr /\u003eP1 已承诺客户/关键系统功能\u003cbr /\u003eP2与营销/服务直接相关的\u003cbr /\u003eP3效率相关的","name":"优先级"}} -->
    <el-form-item prop="priority" label="优先级" label-width="100px" label-position="right">
      <el-radio-group v-model="form_aaakv.priority"   >
        <el-radio-button v-for="item in priorityList" :key="item.value" :label="item.value" >
            {{item.name}}
        </el-radio-button>
      </el-radio-group>
      <el-tooltip raw-content="true" content="优先级  <br />p0 重大客情/政治任务/直接产生效益<br />P1 已承诺客户/关键系统功能<br />P2与营销/服务直接相关的<br />P3效率相关的" placement="bottom" effect="light">
      <i class="form_item_info fa fa-info-circle"  aria-hidden="true" />
      </el-tooltip>
    </el-form-item>
    </el-col>
    <el-col :span="12"></el-col>
    <el-col :span="24">
    <!-- {"index":10,"raw":"source","name":"source","cname":"Source","type":{"raw":"number(2)","name":"number","len":2,"dlen":0},"defValue":"","allowNull":false,"constraints":["l","le","c","u","v","q","li","sl","tp(radio)","color","lw(120)","ps(full)","rx","fx"],"desc":{"raw":"来源","name":"来源"}} -->
    <el-form-item prop="source" label="来源" label-width="100px" label-position="right">
      <el-radio-group v-model="form_aaakv.source"   >
        <el-radio-button v-for="item in sourceList" :key="item.value" :label="item.value" >
            {{item.name}}
        </el-radio-button>
      </el-radio-group>
    </el-form-item>
    </el-col>
    <el-col :span="24">
    <!-- {"index":12,"raw":"content","name":"content","cname":"Content","type":{"raw":"varchar2(2000)","name":"varchar2","len":2000,"dlen":0},"defValue":"","allowNull":false,"constraints":["q","c","le","u","v","li","rows(6)","#like","tp(rtext,c-u)","fx"],"desc":{"raw":"内容","name":"内容"}} -->
    <!--内容 输入控件 -->
    <el-form-item prop="content" label="内容" label-width="100px" label-position="right">
      <el-input clearable style="width: 100%" v-model="form_aaakv.content"  maxlength="2000" 
      :rows="6"  type="textarea" show-word-limit  placeholder="请输入内容"  />
      </el-form-item>
    </el-col>
    <el-col :span="12">
    <!-- {"index":19,"raw":"proposal_time","name":"proposal_time","cname":"ProposalTime","type":{"raw":"date","name":"date","len":0,"dlen":0},"defValue":"","allowNull":true,"constraints":["le","c","u","f(MM/dd)","q","tp(daterange,q)","li","v"],"desc":{"raw":"提出时间","name":"提出时间"}} -->
    <!--提出时间 日期控件 -->
    <el-form-item prop="proposal_time" label="提出时间" label-width="100px" label-position="right">
      <el-date-picker style="width: 100%" v-model="form_aaakv.proposal_time" clearable type="date"
          placeholder="请选择提出时间" format="YYYY-MM-DD" value-format="YYYY-MM-DD"  :default-time="new Date($theia.str.dateFormat(new Date(),'MM/dd'))"/>
    </el-form-item>
    </el-col>
    <el-col :span="12">
    <!-- {"index":20,"raw":"expected_time","name":"expected_time","cname":"ExpectedTime","type":{"raw":"date","name":"date","len":0,"dlen":0},"defValue":"","allowNull":true,"constraints":["l","le","c","u","f(MM/dd)","q","tp(daterange,q)","li","v"],"desc":{"raw":"期望上线","name":"期望上线"}} -->
    <!--期望上线 日期控件 -->
    <el-form-item prop="expected_time" label="期望上线" label-width="100px" label-position="right">
      <el-date-picker style="width: 100%" v-model="form_aaakv.expected_time" clearable type="date"
          placeholder="请选择期望上线" format="YYYY-MM-DD" value-format="YYYY-MM-DD"  :default-time="new Date($theia.str.dateFormat(new Date(),'MM/dd'))"/>
    </el-form-item>
    </el-col>
    <el-col :span="12">
    <!-- {"index":25,"raw":"sponsor","name":"sponsor","cname":"Sponsor","type":{"raw":"varchar2(32)","name":"varchar2","len":32,"dlen":0},"defValue":"","allowNull":false,"constraints":["le","c","q","u","v","li","fx"],"desc":{"raw":"发起人","name":"发起人"}} -->
    <!--发起人 输入控件 -->
    <el-form-item prop="sponsor" label="发起人" label-width="100px" label-position="right">
      <el-input clearable style="width: 100%" v-model="form_aaakv.sponsor"  maxlength="32" 
      :rows="0"  placeholder="请输入发起人"  />
      </el-form-item>
    </el-col>
    </el-row>
    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="hide_aaakv" icon="close">取消</el-button>
        <el-button type="primary" @click="save_aaakv" icon="select">提交</el-button>
      </span>
    </template>
    </el-dialog>
   
    <!-- 待评估 -->
    <el-dialog v-model="conf.aaakh_visible" 
        draggable
      title="待评估" :close-on-click-modal="false"  width="60%"
      top="10vh" 
      :before-close="hide_aaakh">
    <el-form  ref="fm_aaakh" :model="form_aaakh" :rules="rules_aaakh">
    <el-row>
    <el-col :span="24">
    <!-- {"index":16,"raw":"pmaster","name":"pmaster","cname":"Pmaster","type":{"raw":"number(8)","name":"number","len":8,"dlen":0},"defValue":"","allowNull":false,"constraints":["c","l","u","le","q","v","sl(pmaster,-,#lob_id)","fq","tp(radio)","tp(multiselect,q)","cpr","sws","ps(full)","lw(60)","color","fx"],"desc":{"raw":"产品","name":"产品"}} -->
    <el-form-item prop="pmaster" label="产品" label-width="100px" label-position="right">
      <el-radio-group v-model="form_aaakh.pmaster"   >
        <el-radio-button v-for="item in pmasterList" :key="item.value" :label="item.value" >
            {{item.name}}
        </el-radio-button>
      </el-radio-group>
    </el-form-item>
    </el-col>
    <el-col :span="12">
    <!-- {"index":21,"raw":"req_ass_time","name":"req_ass_time","cname":"ReqAssTime","type":{"raw":"date","name":"date","len":0,"dlen":0},"defValue":"","allowNull":true,"constraints":["le","c","u","f(MM/dd)","q","tp(daterange,q)","v","sws","cpr","tp(datetime,c-u-sws-crp,yyyy/MM/dd 09:00:00)","rx","fx"],"desc":{"raw":"评估时间","name":"评估时间"}} -->
    <!--评估时间 日期控件 -->
    <el-form-item prop="req_ass_time" label="评估时间" label-width="100px" label-position="right">
      <el-date-picker style="width: 100%" v-model="form_aaakh.req_ass_time" clearable type="date"
          placeholder="请选择评估时间" format="YYYY-MM-DD" value-format="YYYY-MM-DD"  :default-time="new Date($theia.str.dateFormat(new Date(),'MM/dd'))"/>
    </el-form-item>
    </el-col>
    <el-col :span="12">
    <!-- {"index":22,"raw":"internal_ass_time","name":"internal_ass_time","cname":"InternalAssTime","type":{"raw":"date","name":"date","len":0,"dlen":0},"defValue":"","allowNull":true,"constraints":["le","c","u","f(MM/dd)","q","tp(daterange,q)","v","sws","cpr","tp(datetime,c-u-sws-crp,yyyy/MM/dd 09:00:00)","rx","fx"],"desc":{"raw":"内评时间","name":"内评时间"}} -->
    <!--内评时间 日期控件 -->
    <el-form-item prop="internal_ass_time" label="内评时间" label-width="100px" label-position="right">
      <el-date-picker style="width: 100%" v-model="form_aaakh.internal_ass_time" clearable type="date"
          placeholder="请选择内评时间" format="YYYY-MM-DD" value-format="YYYY-MM-DD"  :default-time="new Date($theia.str.dateFormat(new Date(),'MM/dd'))"/>
    </el-form-item>
    </el-col>
    </el-row>
    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="hide_aaakh" icon="close">取消</el-button>
        <el-button type="primary" @click="save_aaakh" icon="select">提交</el-button>
      </span>
    </template>
    </el-dialog>
   
    <!-- 待正评 -->
    <el-dialog v-model="conf.aaakl_visible" 
        draggable
      title="待正评" :close-on-click-modal="false"  width="60%"
      top="10vh" 
      :before-close="hide_aaakl">
    <el-form  ref="fm_aaakl" :model="form_aaakl" :rules="rules_aaakl">
    <el-row>
    <el-col :span="12">
    <!-- {"index":11,"raw":"version","name":"version","cname":"Version","type":{"raw":"varchar2(32)","name":"varchar2","len":32,"dlen":0},"defValue":"","allowNull":true,"constraints":["q","le","v","sws","lw(60)","color","c2zp","fx","lidx(110)","w"],"desc":{"raw":"版本号","name":"版本号"}} -->
    <!--版本号 输入控件 -->
    <el-form-item prop="version" label="版本号" label-width="100px" label-position="right">
      <el-input clearable style="width: 100%" v-model="form_aaakl.version"  maxlength="32" 
      :rows="0"  placeholder="请输入版本号"  />
      </el-form-item>
    </el-col>
    <el-col :span="12">
    <!-- {"index":23,"raw":"tch_sol_ass_time","name":"tch_sol_ass_time","cname":"TchSolAssTime","type":{"raw":"date","name":"date","len":0,"dlen":0},"defValue":"","allowNull":true,"constraints":["le","c","u","f(MM/dd)","q","tp(daterange,q)","v","c2zp","sws","tp(datetime,c-u-sws,yyyy/MM/dd 09:00:00)","rx","fx"],"desc":{"raw":"正评时间","name":"正评时间"}} -->
    <!--正评时间 日期控件 -->
    <el-form-item prop="tch_sol_ass_time" label="正评时间" label-width="100px" label-position="right">
      <el-date-picker style="width: 100%" v-model="form_aaakl.tch_sol_ass_time" clearable type="date"
          placeholder="请选择正评时间" format="YYYY-MM-DD" value-format="YYYY-MM-DD"  :default-time="new Date($theia.str.dateFormat(new Date(),'MM/dd'))"/>
    </el-form-item>
    </el-col>
    </el-row>
    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="hide_aaakl" icon="close">取消</el-button>
        <el-button type="primary" @click="save_aaakl" icon="select">提交</el-button>
      </span>
    </template>
    </el-dialog>
   
    <!-- 开发中 -->
    <el-dialog v-model="conf.aaakp_visible" 
        draggable
      title="开发中" :close-on-click-modal="false"  width="60%"
      top="10vh" 
      :before-close="hide_aaakp">
    <el-form  ref="fm_aaakp" :model="form_aaakp" :rules="rules_aaakp">
    <el-row>
    <el-col :span="24">
    <!-- {"index":7,"raw":"plan_id","name":"plan_id","cname":"PlanId","type":{"raw":"number(10)","name":"number","len":10,"dlen":0},"defValue":"0","allowNull":true,"constraints":["le","q","v","w","sl(dev_plan,-,#lob_id)","sws","tp(multiselect,q)","ps(full)","DP","tp(readonly,rpp)","rpp"],"desc":{"raw":"研发计划","name":"研发计划"}} -->
     <!--研发计划 下拉控件 -->
    <el-form-item prop="plan_id" label="研发计划" label-width="100px" label-position="right">
      <el-select   v-model="form_aaakp.plan_id" style="width: 100%" filterable clearable
        placeholder="请选择研发计划" >
        <el-option v-for="item in plan_idList" :key="item.value" :label="item.name" :value="item.value" />
      </el-select>
    </el-form-item>
    </el-col>
    <el-col :span="12">
    <!-- {"index":11,"raw":"version","name":"version","cname":"Version","type":{"raw":"varchar2(32)","name":"varchar2","len":32,"dlen":0},"defValue":"","allowNull":true,"constraints":["q","le","v","sws","lw(60)","color","c2zp","fx","lidx(110)","w"],"desc":{"raw":"版本号","name":"版本号"}} -->
    <!--版本号 输入控件 -->
    <el-form-item prop="version" label="版本号" label-width="100px" label-position="right">
      <el-input clearable style="width: 100%" v-model="form_aaakp.version"  maxlength="32" 
      :rows="0"  placeholder="请输入版本号"  />
      </el-form-item>
    </el-col>
    </el-row>
    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="hide_aaakp" icon="close">取消</el-button>
        <el-button type="primary" @click="save_aaakp" icon="select">提交</el-button>
      </span>
    </template>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data(){
    return{
      conf:{
        aaaku_visible:false,//关联需求
        aaakg_visible:false,//批量备注
        aaakv_visible:false,//我要提需求
        aaakh_visible:false,//待评估
        aaakl_visible:false,//待正评
        aaakp_visible:false,//开发中
      },
      form_aaaku:{},//关联需求
      form_aaakg:{},//批量备注
      form_aaakv:{},//我要提需求
      form_aaakh:{},//待评估
      form_aaakl:{},//待正评
      form_aaakp:{},//开发中
      //关联需求
      rules_aaaku:{ 
        plan_id:[{required:false, message:"请输入研发计划", trigger: 'blur'}], 
        pr_id:[{required:false, message:"请输入关联需求", trigger: 'blur'}],
      },
      //批量备注
      rules_aaakg:{
      },
      //我要提需求
      rules_aaakv:{ 
        name:[{required:true, message:"请输入名称", trigger: 'blur'}], 
        priority:[{required:true, message:"请输入优先级", trigger: 'blur'}], 
        source:[{required:true, message:"请输入来源", trigger: 'blur'}], 
        content:[{required:true, message:"请输入内容", trigger: 'blur'}], 
        proposal_time:[{required:false, message:"请输入提出时间", trigger: 'blur'}], 
        expected_time:[{required:false, message:"请输入期望上线", trigger: 'blur'}], 
        sponsor:[{required:true, message:"请输入发起人", trigger: 'blur'}],
      },
      //待评估
      rules_aaakh:{ 
        pmaster:[{required:true, message:"请输入产品", trigger: 'blur'}], 
        req_ass_time:[{required:false, message:"请输入评估时间", trigger: 'blur'}], 
        internal_ass_time:[{required:false, message:"请输入内评时间", trigger: 'blur'}],
      },
      //待正评
      rules_aaakl:{ 
        version:[{required:false, message:"请输入版本号", trigger: 'blur'}], 
        tch_sol_ass_time:[{required:false, message:"请输入正评时间", trigger: 'blur'}],
      },
      //开发中
      rules_aaakp:{ 
        plan_id:[{required:false, message:"请输入研发计划", trigger: 'blur'}], 
        version:[{required:false, message:"请输入版本号", trigger: 'blur'}],
      },
    }
  },
  methods:{
     //--------------------关联需求---------------------------------
      //显示 关联需求 弹出框
      show_aaaku(fm){
        //处理输入参数
        let currentForm = {}
        Object.assign(this.form_aaaku,currentForm)
        this.form_aaaku.plan_id = fm.plan_id
        this.form_aaaku.pr_id = fm.pr_id
        this.form_aaaku.pr_id = fm.pr_id
        //特殊参数处理
        this.form_aaaku.prstatus = "88"
        this.loadEnums_aaaku()
        this.conf.aaaku_visible = true;
      },

      //隐藏 关联需求 弹出框
      hide_aaaku(){
        this.conf.aaaku_visible = false;
        this.$refs.fm_aaaku.resetFields();
      },

      //保存 关联需求 弹出框数据
      save_aaaku(){
        let that = this
        this.$refs.fm_aaaku.validate((v=>{
          if(!v) return
          let post_form_aaaku = this.form_aaaku
          this.$theia.http.post("/ws/prod/requirement/relatepp",post_form_aaaku).then(res=>{
            that.$notify.success({title: '成功',message: '提交成功',duration:5000})
            that.$emit("onsaved")
            that.hide_aaaku()
            that.$theia.enum.clear("active_prod_requirement")
          }).catch(res=>{
            let code = ((res||{}).response||{}).status||0
            let msg= `提交失败(${code})`
            that.$notify.error({title: '失败',message:msg,duration:5000})
          })
      }))
    },
     //--------------------批量备注---------------------------------
      //显示 批量备注 弹出框
      show_aaakg(fm){
        //处理输入参数
        let currentForm = {}
        Object.assign(this.form_aaakg,currentForm)
        this.form_aaakg.prod_id = fm.prod_id
        //特殊参数处理
        // this.form_aaakg.prod_id = (this.bcheck||[]).join(",")
        this.loadEnums_aaakg()
        this.conf.aaakg_visible = true;
      },

      //隐藏 批量备注 弹出框
      hide_aaakg(){
        this.conf.aaakg_visible = false;
        this.$refs.fm_aaakg.resetFields();
      },

      //保存 批量备注 弹出框数据
      save_aaakg(){
        let that = this
        this.$refs.fm_aaakg.validate((v=>{
          if(!v) return
          let post_form_aaakg = this.form_aaakg
          this.$theia.http.post("/ws/prod/requirement/batmemo",post_form_aaakg).then(res=>{
            that.$notify.success({title: '成功',message: '提交成功',duration:5000})
            that.$emit("onsaved")
            that.hide_aaakg()
          }).catch(res=>{
            let code = ((res||{}).response||{}).status||0
            let msg= `提交失败(${code})`
            that.$notify.error({title: '失败',message:msg,duration:5000})
          })
      }))
    },
     //--------------------我要提需求---------------------------------
      //显示 我要提需求 弹出框
      show_aaakv(fm){
        //处理输入参数
        let currentForm = {}
        Object.assign(this.form_aaakv,currentForm)
        this.form_aaakv.name = fm.name
        this.form_aaakv.priority = fm.priority
        this.form_aaakv.source = fm.source
        this.form_aaakv.content = fm.content
        this.form_aaakv.proposal_time = fm.proposal_time
        this.form_aaakv.expected_time = fm.expected_time
        this.form_aaakv.sponsor = fm.sponsor
        this.form_aaakv.name = fm.name
        this.form_aaakv.priority = fm.priority
        this.form_aaakv.source = fm.source
        this.form_aaakv.content = fm.content
        this.form_aaakv.proposal_time = fm.proposal_time
        this.form_aaakv.expected_time = fm.expected_time
        this.form_aaakv.sponsor = fm.sponsor
        //特殊参数处理
        this.form_aaakv.priority = "3"
        this.loadEnums_aaakv()
        this.conf.aaakv_visible = true;
      },

      //隐藏 我要提需求 弹出框
      hide_aaakv(){
        this.conf.aaakv_visible = false;
        this.$refs.fm_aaakv.resetFields();
      },

      //保存 我要提需求 弹出框数据
      save_aaakv(){
        let that = this
        this.$refs.fm_aaakv.validate((v=>{
          if(!v) return
          let post_form_aaakv = this.form_aaakv
          post_form_aaakv.lob_id = this.$theia.user.get("lob_id")
          this.$theia.http.post("/ws/prod/requirement/smpl",post_form_aaakv).then(res=>{
            that.$notify.success({title: '成功',message: '提交成功',duration:5000})
            that.$emit("onsaved")
            that.hide_aaakv()
          }).catch(res=>{
            let code = ((res||{}).response||{}).status||0
            let msg= `提交失败(${code})`
            that.$notify.error({title: '失败',message:msg,duration:5000})
          })
      }))
    },
     //--------------------待评估---------------------------------
      //显示 待评估 弹出框
      show_aaakh(fm){
        //处理输入参数
        let currentForm = {}
        Object.assign(this.form_aaakh,currentForm)
        this.form_aaakh.pmaster = fm.pmaster
        this.form_aaakh.req_ass_time = fm.req_ass_time
        this.form_aaakh.internal_ass_time = fm.internal_ass_time
        this.form_aaakh.prod_id = fm.prod_id
        //特殊参数处理
        // this.form_aaakh.prod_id = (this.bcheck||[]).join(",")
        this.form_aaakh.prstatus = "20"
        this.loadEnums_aaakh()
        this.conf.aaakh_visible = true;
      },

      //隐藏 待评估 弹出框
      hide_aaakh(){
        this.conf.aaakh_visible = false;
        this.$refs.fm_aaakh.resetFields();
      },

      //保存 待评估 弹出框数据
      save_aaakh(){
        let that = this
        this.$refs.fm_aaakh.validate((v=>{
          if(!v) return
          let post_form_aaakh = this.form_aaakh
          this.$theia.http.post("/ws/prod/requirement/checkprodreq",post_form_aaakh).then(res=>{
            that.$notify.success({title: '成功',message: '提交成功',duration:5000})
            that.$emit("onsaved")
            that.hide_aaakh()
          }).catch(res=>{
            let code = ((res||{}).response||{}).status||0
            let msg= `提交失败(${code})`
            that.$notify.error({title: '失败',message:msg,duration:5000})
          })
      }))
    },
     //--------------------待正评---------------------------------
      //显示 待正评 弹出框
      show_aaakl(fm){
        //处理输入参数
        let currentForm = {}
        Object.assign(this.form_aaakl,currentForm)
        this.form_aaakl.version = fm.version
        this.form_aaakl.tch_sol_ass_time = fm.tch_sol_ass_time
        this.form_aaakl.prod_id = fm.prod_id
        //特殊参数处理
        // this.form_aaakl.prod_id = (this.bcheck||[]).join(",")
        this.form_aaakl.prstatus = "60"
        this.loadEnums_aaakl()
        this.conf.aaakl_visible = true;
      },

      //隐藏 待正评 弹出框
      hide_aaakl(){
        this.conf.aaakl_visible = false;
        this.$refs.fm_aaakl.resetFields();
      },

      //保存 待正评 弹出框数据
      save_aaakl(){
        let that = this
        this.$refs.fm_aaakl.validate((v=>{
          if(!v) return
          let post_form_aaakl = this.form_aaakl
          this.$theia.http.post("/ws/prod/requirement/check2zp",post_form_aaakl).then(res=>{
            that.$notify.success({title: '成功',message: '提交成功',duration:5000})
            that.$emit("onsaved")
            that.hide_aaakl()
          }).catch(res=>{
            let code = ((res||{}).response||{}).status||0
            let msg= `提交失败(${code})`
            that.$notify.error({title: '失败',message:msg,duration:5000})
          })
      }))
    },
     //--------------------开发中---------------------------------
      //显示 开发中 弹出框
      show_aaakp(fm){
        //处理输入参数
        let currentForm = {}
        Object.assign(this.form_aaakp,currentForm)
        this.form_aaakp.plan_id = fm.plan_id
        this.form_aaakp.version = fm.version
        this.form_aaakp.prod_id = fm.prod_id
        //特殊参数处理
        // this.form_aaakp.prod_id = (this.bcheck||[]).join(",")
        this.form_aaakp.prstatus = "88"
        this.loadEnums_aaakp()
        this.conf.aaakp_visible = true;
      },

      //隐藏 开发中 弹出框
      hide_aaakp(){
        this.conf.aaakp_visible = false;
        this.$refs.fm_aaakp.resetFields();
      },

      //保存 开发中 弹出框数据
      save_aaakp(){
        let that = this
        this.$refs.fm_aaakp.validate((v=>{
          if(!v) return
          let post_form_aaakp = this.form_aaakp
          this.$theia.http.post("/ws/prod/requirement/relateplan",post_form_aaakp).then(res=>{
            that.$notify.success({title: '成功',message: '提交成功',duration:5000})
            that.$emit("onsaved")
            that.hide_aaakp()
          }).catch(res=>{
            let code = ((res||{}).response||{}).status||0
            let msg= `提交失败(${code})`
            that.$notify.error({title: '失败',message:msg,duration:5000})
          })
      }))
    },
    //关联需求
    loadEnums_aaaku(){
        //研发计划
        this.plan_idList = this.$theia.enum.get("dev_plan","",this.$theia.user.get("lob_id"),false,"")
        //关联需求
        this.pr_idList = this.$theia.enum.get("active_prod_requirement","",this.$theia.user.get("lob_id"),false,"/ws/prod/requirement/enums")
    },

    //批量备注
    loadEnums_aaakg(){
    },

    //我要提需求
    loadEnums_aaakv(){
        //优先级
        this.priorityList = this.$theia.enum.get("PRI","","" ,false,"")
        //来源
        this.sourceList = this.$theia.enum.get("source","","" ,false,"")
    },

    //待评估
    loadEnums_aaakh(){
        //产品
        this.pmasterList = this.$theia.enum.get("pmaster","",this.$theia.user.get("lob_id"),false,"")
    },

    //待正评
    loadEnums_aaakl(){
    },

    //开发中
    loadEnums_aaakp(){
        //研发计划
        this.plan_idList = this.$theia.enum.get("dev_plan","",this.$theia.user.get("lob_id"),false,"")
    },

  },
}
</script>
<style scoped>
.form_item_info{
  margin-left: 4px;
  color:#999;
}
.form_item_info:hover{
  cursor: pointer;
  font-weight: 500;
  color:#333;
}
</style>